/*
七牛云配置
*/
const qiniu = require('qiniu')

// 创建上传凭证
const accessKey = 'ELWwScVsy9a4IaJxndLyT5RRc97BjpPdc0cT7G9m'
const secretKey = 'DqG-QG2-E-Mpzz68uq5aYjHL-iClYsXhd4znzfG-'
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
const options = {
  scope: 'adver',
  expires: 7200
}

const putPolicy = new qiniu.rs.PutPolicy(options)

const uploadToken = putPolicy.uploadToken(mac)


module.exports = {
  uploadToken  
}